//package com.ruoyi.file;
//
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.stereotype.Service;
//
//import java.net.URLEncoder;
//import java.nio.charset.StandardCharsets;
//
//@Service
//public class KKFileViewServer {
//    @Value("${kkfileview.server}")
//    private String kkServer;
//
//    /**
//     * 生成 KKFileView 预览地址
//     */
//    public String buildPreviewUrl(String objectName) throws Exception {
////         String downloadUrl = getDownloadUrl(objectName);
//         String downloadUrl = "";
//         return kkServer + "/onlinePreview?url="
//        + URLEncoder.encode(downloadUrl, String.valueOf(StandardCharsets.UTF_8));
//    }
//}
